package com.song.shop.elasticsearch;

import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.transport.InetSocketTransportAddress;
import org.elasticsearch.transport.client.PreBuiltTransportClient;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: Song Yinhui
 * @Date: 2018/11/27 19:54
 */
public class ElasticSearchTest2 {

    public void instence(){
        Client client = null ;
        try {
           // client = TransportClient.builder().build()
                 //   .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("192.168.232.128"), 9300));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }


    public static void main(String[] args){


    }
}
